Bevel Button Behavior Constants
You can pass the bevel button behavior constants in the high byte of the minimumValue
parameter of NewControl
to create a
bevel button with a specific behavior. The bevel button behavior constants are available with Appearance Manager 1.0 and later.
enum {
kControlBehaviorPushbutton = 0,
kControlBehaviorToggles = 0x0100,
kControlBehaviorSticky = 0x0200,
kControlBehaviorOffsetContents = 0x8000
};
Constant descriptions
-
kControlBehaviorPushbutton
-
Push button (momentary) behavior. The bevel button pops up after being clicked.
-
kControlBehaviorToggles
-
Toggle behavior. The bevel button toggles state automatically when clicked.
-
kControlBehaviorSticky
-
Sticky behavior. Once clicked, the bevel button stays down until your application sets the control's value to 0. This behavior is useful in tool palettes and radio groups.
-
kControlBehaviorOffsetContents
-
Bevel button contents are offset (one pixel down and to the right) when button is pressed.
© 1998 Apple Computer, Inc. – (Last Updated 19 Nov 98)